@import "./style.less";
a{
  text-decoration: none;
  outline: none;
}
button {
  cursor: pointer;
}
.container{
  width: 1200px;
  min-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.stock-sell-section {
  padding-top: 40px;
  padding-bottom: 40px;
  background: url(@buy-bg-img) no-repeat center center;
  .stock-buy{
    min-height: 860px;

    .change-stock {
      width: 520px;
      height: 40px;
      margin: 0px auto;
      font-size: 16px;
      .icon-search {
        display: block;
        width: 40px;
        text-align: right;
        font-size: 18px;
        color: #c7c7c7;
        float: left;
        height: 40px;
        border-top: 1px solid #ff4519;
        border-left: 1px solid #ff4519;
        border-bottom: 1px solid #ff4519;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
        background: url(@seach-img) no-repeat;
        background-size: 20px;
        background-position: center center;
      }
      .search_txt {
        width: 310px;
        height:40px;
        line-height: 40px;
        padding-left: 10px;
        border-radius: 0px;
        float: left;
        border-top: 1px solid #ff4519;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid #ff4519;
      }
      .searchConfirm {
        float: left;
        display: block;
        width: 158px;
        color: white;
        line-height: 40px;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
        background-color: #ff4519;
        border: 1px solid #ff4519;
      }
    }

  }
  .play-area{
    background-color: white;
    box-shadow: 0 0 5px 1px rgba(143,38,14,0.1);
    padding-left: 4px;
    .nav-left {
      position: absolute;
      width: 60px;
      height: 330px;
      left: -61px;
      top: 0px;
      overflow: hidden;
      box-shadow: -2px 0px 5px rgba(143,38,14,0.1);
      border-top-left-radius: 10px;
      border-bottom-left-radius: 10px;
      a {
        font-size: 20px;
        width: 20px;
        display: block;
        height: 140px;
        text-align: center;
        padding: 30px 20px 0px;
        margin-top: -10px;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        -moz-transform: skewY(-10deg);
        -webkit-transform: skewY(-10deg);
        -o-transform: skewY(-10deg);
        -ms-transform: skewY(-10deg);
        transform: skewY(-10deg);
        color: #ff4519;
        background-color: white;
        &.nav-left-free {
          margin-top: 0px;
          height: 150px;
          padding-top: 25px;
          border-radius: 10px;
          border-bottom-right-radius:0px;
        }
        &.active {
          background: -moz-linear-gradient(top, rgba(255,140,0,0.8), rgba(255,69,25,0.8));
          background: -webkit-gradient(linear,top,from(rgba(255,140,0,0.8)),to(rgba(255,69,25,0.8)));
          background: -webkit-linear-gradient(top, rgba(255,140,0,0.8), rgba(255,69,25,0.8));
          background: -o-linear-gradient(top, rgba(255,140,0,0.8), rgba(255,140,0,0.8));
          *background:#FF8C00 ;
          color: #fff;
        }
        span {
          display: block;
          -moz-transform: skewY(10deg);
          -webkit-transform: skewY(10deg);
          -o-transform: skewY(10deg);
          -ms-transform: skewY(10deg);
          transform: skewY(10deg);
        }
      }
    }


    //nav
    nav {
      height: 70px;
      line-height: 66px;
      li {
        width: 33.33%;
        float: left;
        text-align: center;
        &.active{
          a {
            color: #ff4519;
          }
        }
        a {
          font-size: 30px;
          color: #c7c7c7;
          display: block;
        }
      }
    }

    >section{
      padding: 40px 50px 20px;
      box-sizing: border-box;
      .left-info {
        width: 570px;
        float: left;
        border-right: 1px solid #f1f1f1;
        position: relative;
        padding-right: 50px;
        box-sizing: border-box;
        .stock-name {
          margin-top: 15px;
          margin-bottom: 15px;
          vertical-align: middle;
        }
        .stock-name-left {
          float: left;
          h4 {
            font-size: 30px;
            color: #4c4c4c;
            font-weight: normal;
          }
          p {
            font-size: 18px;
            color: #808080;
          }
        }
        .stock-name-right {
          float: right;
          text-align: right;
          h5 {
            font-size: 30px;
            font-weight: normal;
          }
          span {
            padding-left: 20px;
          }
        }

        .stock-info{
          margin-top: 20px;
          color: #808080;
          font-size: 14px;
          li {
            width: 25%;
            margin-bottom: 8px;
            float: left;
            span{
              &.l {
                margin-right: 10px;
              }
            }
          }
        }

        .stock-detail{
          margin-top: 20px;
          .stock-percentage{
            p {
              font-size: 16px;
            }
            .buy {
              float: left;
              text-align: left;
              color: #ff4519;
              width: 50%;

            }
            .sell {
              float: right;
              text-align: right;
              color: #00d47d;
              width: 50%;
            }
          }

          .stock-percentage-chart{
             .buy {
               float: left;
               width: 100%;
               margin-top: 8px;
               height: 4px;
               border-top-left-radius: 2px;
               border-bottom-left-radius: 2px;
               background-color: #ff4519;
               box-shadow: -1px 0 1px 1px #ff4519;
             }
             .sell {
               float: left;
               width: 100%;
               margin-top: 8px;
               height: 4px;
               border-top-right-radius: 2px;
               border-bottom-right-radius: 2px;
               background-color: #00d47d;
               box-shadow: 1px 0 1px 1px #00d47d;
             }
           }
          ul {
            width: 50%;
            float: left;
            li + li {
              margin-top: 10px;
            }
          }

          .stock-price {
            margin-top: 8px;
            .buy em {
              background-color: #ff4519;
            }
            .sell em {
              background-color: #00d47d;
            }
            em {
              display: inline-block;
              width: 16px;
              height: 16px;
              line-height: 16px;
              font-size: 14px;
              color: white;
              text-align: center;
              border-radius: 3px;
              margin-left: 16px;
            }
            b {
              font-size: 14px;
              padding-left: 10px;
              line-height: 16px;
            }
            i {
              float: right;
              color: #4d4d4d;
              font-size: 14px;
              padding-right: 10px;
            }
          }
        }
        //market
      }

      .right-buy {
        width: 480px;
        float: right;
        color: #4c4c4c;
        font-size: 16px;
        .buy_price{
          .top{
            font-size: 18px;
            span{
              font-size: 14px;
              color: @red;
            }
            b {
              width: 22px;
              height: 20px;
              text-align: center;
              line-height: 20px;
              background-color: #ffdad1;
              color: #ff4519;
              margin: 0 5px;
              border-radius: 3px;
            }
          }
        }
        .ul-list{
          width: 490px;
          margin-top: 10px;
          display: inline-block;
          li{
            width: 110px;
            float: left;
            height: 40px;
            margin-top: 8px;
            margin-right: 10px;
            border: 1px solid #e6e6e6;
            border-radius: 5px;
            text-align: center;
            line-height: 40px;
            font-size: 16px;
            cursor: pointer;
            &.disable{
              background-color: #d0d0d0;
              color: #fff;
              &:hover {
                border:1px solid #d0d0d0;
                color: #fff;
              }
            }

            //display: inline-block;
            &:hover {
              border: 1px solid #ff4519;
              color: #ff4519;
            }
            &.active {
              background-color: #ff4519;
              border: 1px solid #ff4519;
              color: #fff;
            }
          }

        }
        .efficiency{
          line-height: 20px;
          margin-top: 10px;
           span{
             margin-right:50px ;
           }
            i{
              color:#ff4519;
            }
        }
        .protocol_row {
          margin-top: 20px;
          margin-bottom: 10px;
          .protocol_row-agree {
            position: relative;
            line-height: 46px;
            padding-left: 10px;
            font-size: 14px;
            color: #808080;
          }
          h4 {
            font-size: 16px;
            color: #4c4c4c;
            line-height: 60px;
            font-weight: normal;
          }
          h5 {
            font-size: 16px;
            color: #808080;
            padding: 22px 0 14px;
            font-weight: normal;
          }
          .activity-rule {
            color: #808080;
            font-size: 14px;
            line-height: 1.8;
          }
          .self-warning {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            display: inline-block;
            vertical-align: middle;
            background-color: #ff4519;
            color: white;
            text-align: center;
            font-size: 14px;
            font-weight: bold;
            line-height: 16px;
          }
          input[type='checkbox'] {
            width: 16px;
            height: 16px;
            opacity: 0;
            &:checked + label {
              background-color: #ff4519;
            }
          }
          label {
            position: absolute;
            left: 4px;
            top: 14px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #c7c7c7;
            &::after {
              position: absolute;
              content: " ";
              width: 3px;
              height: 6px;
              top: 4px;
              left: 6px;
              border: 2px solid #fff;
              border-top: none;
              border-left: none;
              transform: rotate(45deg);
            }
          }
         a {
            display: block;
            font-size: 14px;
            line-height: 1.9;
            color: #5cb1ff;
          }
        }
      }
    }
  }
}
.right-buy .open-time > span,
.right-buy .check-surplus > span,
.right-buy .stop-loss > span,
.right-buy .com_fee > span,
.right-buy .perf_bond > span,
.right-buy .delay_condition span,
.right-buy .delay_fee span,
.right-buy .efficiency > span {
  line-height: 44px;
  font-size: 18px;
}

.right-buy .open-time li.active,
.right-buy .check-surplus li.active,
.right-buy .com_fee strong,
.right-buy .perf_bond strong,
.right-buy .delay_condition em {
  color: #ff4519;
  font-size: 20px;
  font-weight: normal;
}
.stock-buy .play-area .right-buy span,
.stock-buy .play-area .right-buy ul,
.stock-buy .play-area .right-buy li,
.stock-buy .play-area .right-buy label,
.stock-buy .play-area .right-buy em,
.stock-buy .play-area .right-buy b,
.stock-buy .play-area .right-buy i {
  display: inline-block;
}
.hide {
  display: none;
}
.red{
  color:@red;
  .icon-down{
    width: 23px;
    height: 30px;
    display: inline-block;
    .backImg(@up)
  }
}
.green{
  color:@green;
  .icon-down{
    width: 23px;
    height: 30px;
    display: inline-block;
    .backImg(@down)
  }
}
.icon-down{
  width: 23px;
  height: 30px;
  display: inline-block;
  .backImg(@down)
}
.icon-up{
  width: 23px;
  height: 30px;
  display: inline-block;
  .backImg(@up)
}
.search-table {
  width: 460px;
  height: 400px;
  overflow-y: auto;
  -ms-overflow-y: auto;
  -webkit-overflow-scrolling: auto;
  top: 50px;
  border: 1px solid #ff4519;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  position: absolute;
  z-index: 10;
  background-color: white;
  padding: 0 30px;
  table {
    width: 100%;
    th {
      font-size: 16px;
      color: #808080;
      line-height: 44px;
      font-weight: 500;
      border-bottom: 1px solid #c7c7c7;
      width: 33.33%;
      text-align: center;
    }
    tbody tr {
      cursor: pointer;
      color: rgba(0,0,0,0.8);

    }
    td {
      text-align: center;
      width: 33.33%;
      line-height: 40px;
    }
  }
}

//market

.stock-figure{
  width: 520px;
  height: 286px;
}

.delay_tip {
  position: relative;
  display: inline-block;
  margin-right: 10px;
  &:hover{
    .showtip{
      display: block;
    }
  }
  i {
    margin-right: 6px;
    vertical-align: middle;
    width: 30px;
    height: 30px;
    .backImg(@wenhao);
    background-size: 20px;
  }
  .showtip {
    display: none;
    font-size: 12px;
    position: absolute;
    width: 242px;
    line-height: 18px;
    padding: 10px;
    top: -10px;
    left: 40px;
    color: #666;
    border-radius: 5px;
    border: 1px solid #F2DF1C;
    z-index: 999;
    background-color: #FFFDE7;
    text-align: justify;
    &::after {
      position: absolute;
      top: 15px;
      left: -5px;
      content: " ";
      width: 10px;
      height: 10px;
      background-color: #FFFDE7;
      transform: rotate(45deg);
      border-left: 1px solid #F2DF1C;
      border-bottom: 1px solid #F2DF1C;
    }
  }
}
.color-btn {
  width: 100%;
  display: block;
  height: 40px;
  line-height: 40px;
  margin-top: 16px;
  background-color: #ff4519;
  &.link-btn{
    background-color: #dacfcd !important;
  }
  border-radius: 5px;
  color: white;
  font-size: 20px;
  position: relative;
  cursor: pointer;
  border: none;
  &::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    right: 55px;
    width: 20px;
    height: 40px;
    -moz-transform: skewX(-45deg);
    -webkit-transform: skewX(-45deg);
    -o-transform: skewX(-45deg);
    -ms-transform: skewX(-45deg);
    transform: skewX(-45deg);
    background-color: #ff7807;
  }
  &::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    right: 84px;
    width: 6px;
    height: 40px;
    -moz-transform: skewX(-45deg);
    -webkit-transform: skewX(-45deg);
    -o-transform: skewX(-45deg);
    -ms-transform: skewX(-45deg);
    transform: skewX(-45deg);
    background-color: #ff7807;
  }
}


//sell

.stock-record-list{
  position: relative;
  ul {
    width: 100%;
    margin-top: 20px;
  }
  .stock-sell-no-record p {
    color: #ff4519;
    font-size: 24px;
    line-height: 70px;
    padding-top: 112px;
  }
  .data-empty {
    display: none;
    text-align: center;
    font-size: 26px;
    color: #bbb;
    padding-top: 40px;

  }
  ul{
    width: 100%;
    margin-top: 20px;
    .left-info {
      width: 869px;
      float: left;
      border-right: 1px solid #e5e5e5;
      padding-left: 40px;
      padding-right: 24px;
      box-sizing: border-box;
      position: relative;
    }
    .header {
      line-height: 80px;
      border-bottom: 1px solid #e6e6e6;
      padding: 0 10px;
      color: #808080;
      font-size: 16px;
      &.clearfix:after {
        content: ".";
        display: block;
        height: 0;
        clear: both;
        visibility: hidden;
      }
      h5 {
        font-weight: normal;
        font-size: 20px;
        float: left;
        color: #4c4c4c;
        span {
          font-size: 16px;
          color: #808080;
          margin-left: 50px;
        }

      }
      p {
        float: right;
      }
    }
    .main-info {
      padding: 0 10px;
      border-bottom: 1px solid #e6e6e6;
    }
    .main-left {
      width: 500px;
      border-right: 1px solid #e6e6e6;
      display: inline-block;
      padding-bottom: 18px;
      span{
        color:#ff4519;
        margin: 0 5px;
      }
      li{
        display: inline-block;
        width: 48%;
        margin-top: 18px;
        line-height: 1;
        color: #4c4c4c;
        font-size: 16px;
        &:nth-child(odd) {
          width: 42%;
        }
        &:nth-child(even) {
          width: 55%;
        }
      }
    }
    .main-right {
      display: inline-block;
      width: 260px;
      p {
        display: inline-block;
        width: 47%;
        text-align: center;
        label {
          font-size: 16px;
          color: #4c4c4c;
        }
        span {
          display: block;

          font-size: 24px;
        }
      }
    }
    .other-info {
      line-height: 56px;
      color: #999999;
      font-size: 16px;
      padding-left: 10px;
    }
    .right-info {
      width: 330px;
      float: left;
      text-align: center;
      p {
        line-height: 1;
        color: #ff4519;
        font-size: 34px;
        margin-top: 70px;
      }
    }
    .color-btn {
      width: 218px;
      margin: 20px auto;
      overflow: hidden;
      &.disabled{
        background-color: #bbbab9 !important;
        &::before{
          background-color:#e6e6e6 !important;
          right: 10px;
        }
        &::after{
          background-color:#e6e6e6 !important;
          right: 40px;
        }
      }
      &::before{
        right: 10px;
      }
      &::after{
        right: 40px;
      }
    }
    li{
      background-color: white;
      margin-top: 10px;

    }
  }
}
.stock-sell-no-record {
  background-color: white;
  margin-top: -60px;
  text-align: center;
  height: 640px;
  box-shadow: 0 1px 5px 0 rgba(143,38,14,0.1);
  p {
    color: #ff4519;
    font-size: 24px;
    line-height: 70px;
    padding-top: 112px;
  }
  .color-btn {
    width: 220px;
    margin: 30px auto;
    &::before {
      -moz-transform: skewX(-15deg);
      -webkit-transform: skewX(-15deg);
      -o-transform: skewX(-15deg);
      -ms-transform: skewX(-15deg);
      transform: skewX(-15deg);
      right: 10px;
    }
    &::after {
      -moz-transform: skewX(-15deg);
      -webkit-transform: skewX(-15deg);
      -o-transform: skewX(-15deg);
      -ms-transform: skewX(-15deg);
      transform: skewX(-15deg);
      right: 34px;
    }
  }
}